package test;

public class Teacher {
    String id;
    String name;
    String gender;
    Course course;
    //定义

    public Teacher(String id_t, String name_t, String gender_t){
        id = id_t;
        name = name_t;
        gender = gender_t;
    }
    //教师信息

    public void setCourse(Course course) {
        this.course = course;
        if (course != null) {
            System.out.println(name + "老师已开设《" + course.getCourseName() + "》课程");
        }
    }
     public Course getCourse() {
        return course;
    }
    //教师课程信息

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

}
